<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="GadgetsIo,org.opensocial.client.base.GadgetsIo,AuthorizationType,ContentType,MethodType,RequestParameters,newGetRequestParams,newPostRequestParams" name="keywords">
<title>org.opensocial.client.base.GadgetsIo</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'GadgetsIo - OpenSocial Actionscript 3.0 Client Library Documentation';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">OpenSocial Actionscript Client Library</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?org/opensocial/client/base/GadgetsIo.html&amp;org/opensocial/client/base/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;GadgetsIo</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a>&nbsp;| <a href="#constantSummary">Constants</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class GadgetsIo"); titleBar_setSubNav(true,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">org.opensocial.client.base</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class GadgetsIo</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">GadgetsIo <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../../images/inherit-arrow.gif"> <a href="BaseType.html">BaseType</a></td>
</tr>
</table>
<p></p>
 Wrapper of <code><j>gadgets.io</j></code> namespace in javascript.
 <p>
 This class is just used as a namespace for static constants and functions.
 </p>
  <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="http://code.google.com/apis/opensocial/docs/0.8/reference/gadgets/#gadgets.io" target="mm_external">gadgets.io</a>
</div>
<br>
<hr>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#newGetRequestParams()">newGetRequestParams</a>(contentType:String = null, authType:String = null, headers:Object = null):Object</div>
<div class="summaryTableDescription">[static]
   Prepare a makeRequest parameter object of GET method.</div>
</td><td class="summaryTableOwnerCol">GadgetsIo</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#newPostRequestParams()">newPostRequestParams</a>(postData:Object, contentType:String = null, authType:String = null, headers:Object = null):Object</div>
<div class="summaryTableDescription">[static]
   Prepare a makeRequest parameter object of POST method.</div>
</td><td class="summaryTableOwnerCol">GadgetsIo</td>
</tr>
</table>
</div>
<a name="constantSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Constants</div>
<table id="summaryTableConstant" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Constant</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#AuthorizationType">AuthorizationType</a> : <a href="../base/ConstType.html">ConstType</a>
<div class="summaryTableDescription">[static]
   <code><j>gadgets.io.AuthorizationType</j></code> constants.</div>
</td><td class="summaryTableOwnerCol">GadgetsIo</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#ContentType">ContentType</a> : <a href="../base/ConstType.html">ConstType</a>
<div class="summaryTableDescription">[static]
   <code><j>gadgets.io.ContentType</j></code> constants.</div>
</td><td class="summaryTableOwnerCol">GadgetsIo</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#MethodType">MethodType</a> : <a href="../base/ConstType.html">ConstType</a>
<div class="summaryTableDescription">[static]
   <code><j>gadgets.io.MethodType</j></code> constants.</div>
</td><td class="summaryTableOwnerCol">GadgetsIo</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#RequestParameters">RequestParameters</a> : <a href="../base/ConstType.html">ConstType</a>
<div class="summaryTableDescription">[static]
   <code><j>gadgets.io.RequestParameters</j></code> constants.</div>
</td><td class="summaryTableOwnerCol">GadgetsIo</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="newGetRequestParams()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">newGetRequestParams</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public static function newGetRequestParams(contentType:String = null, authType:String = null, headers:Object = null):Object</code><p>
   Prepare a makeRequest parameter object of GET method. Keys are defined in
   <code>GadgetsIo.RequestParameters</code>.
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">contentType</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The value for <code>GadgetsIo.RequestParameters.CONTENT_TYPE</code>,
                      default is <code>GadgetsIo.ContentType.TEXT</code>.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">authType</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The value for <code>GadgetsIo.RequestParameters.AUTHORIZATION</code>,
                   default is <code>GadgetsIo.ContentType.NONE</code>.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">headers</span>:Object</code> (default = <code>null</code>)<code></code> &mdash; The header map.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Object</code> &mdash; The param object.
   </td>
</tr>
</table>
</div>
<a name="newPostRequestParams()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">newPostRequestParams</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static function newPostRequestParams(postData:Object, contentType:String = null, authType:String = null, headers:Object = null):Object</code><p>
   Prepare a makeRequest parameter object of POST method. Keys are defined in
   <code>GadgetsIo.RequestParameters</code>.
      </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">postData</span>:Object</code> &mdash; An object to post. Will be encoded on JS-side.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">contentType</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The value for <code>GadgetsIo.RequestParameters.CONTENT_TYPE</code>,
                      default is <code>GadgetsIo.ContentType.TEXT</code>.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">authType</span>:String</code> (default = <code>null</code>)<code></code> &mdash; The value for <code>GadgetsIo.RequestParameters.AUTHORIZATION</code>,
                   default is <code>GadgetsIo.ContentType.NONE</code>.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">headers</span>:Object</code> (default = <code>null</code>)<code></code> &mdash; The header map.
   </td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Object</code> &mdash; The param object.
   </td>
</tr>
</table>
</div>
<a name="constantDetail"></a>
<div class="detailSectionHeader">Constant detail</div>
<a name="AuthorizationType"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">AuthorizationType</td><td class="detailHeaderType">constant</td>
</tr>
</table>
<div class="detailBody">
<code>public static const AuthorizationType:<a href="../base/ConstType.html">ConstType</a></code><p>
   <code><j>gadgets.io.AuthorizationType</j></code> constants.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://code.google.com/apis/opensocial/docs/0.8/reference/gadgets/#gadgets.io.AuthorizationType" target="mm_external">gadgets.io.AuthorizationType</a>
</div>
</div>
<a name="ContentType"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ContentType</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const ContentType:<a href="../base/ConstType.html">ConstType</a></code><p>
   <code><j>gadgets.io.ContentType</j></code> constants.
   No DOM type in Actionscript.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://code.google.com/apis/opensocial/docs/0.8/reference/gadgets/#gadgets.io.ContentType" target="mm_external">gadgets.io.ContentType</a>
</div>
</div>
<a name="MethodType"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">MethodType</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const MethodType:<a href="../base/ConstType.html">ConstType</a></code><p>
   <code><j>gadgets.io.MethodType</j></code> constants.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://code.google.com/apis/opensocial/docs/0.8/reference/gadgets/#gadgets.io.MethodType" target="mm_external">gadgets.io.MethodType</a>
</div>
</div>
<a name="RequestParameters"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">RequestParameters</td><td class="detailHeaderType">constant</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public static const RequestParameters:<a href="../base/ConstType.html">ConstType</a></code><p>
   <code><j>gadgets.io.RequestParameters</j></code> constants.
   </p><p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="http://code.google.com/apis/opensocial/docs/0.8/reference/gadgets/#gadgets.io.RequestParameters" target="mm_external">gadgets.io.RequestParameters</a>
</div>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright">2010 OpenSocial</center>
</div>
</body>
</html>
<!--2010 OpenSocial-->
